package study03;

import java.awt.Color;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;

public class Test2 {
     public static void main(String[] args) {
    	  JButton  jButton  =new JButton("button1");
    	  jButton.setSize(50, 50);
    	  JButton  jButton1  =new JButton("button2");
    	  jButton1.setSize(50, 50);
		  JPanel   jPanel   = new JPanel();
		  jPanel.setSize(100, 100);
		 // jPanel.setBackground(Color.black);
		  jPanel.add(jButton);
		  jPanel.add(jButton1);
		  JFrame   jFrame = new JFrame();
		  jFrame.setSize(500, 500);
		  jFrame.add(jPanel);
		  jFrame.setVisible(true);
		  
	}
}
